from DrissionPage import SessionPage
sessionPage = SessionPage()

for i in range(1,4):
    sessionPage.get(f'https://gitee.com/explore/all?page={i}')
    links = sessionPage.eles('.title project-namespace-path')
    for link in links:
        print(link.text, link.link)





